package service.impl;

import dao.AdministratorDao;
import entity.Administrator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import service.AdministratorService;

@Service("administratorService")
@Transactional(propagation = Propagation.SUPPORTS)
public class AdministratorServiceImpl implements AdministratorService {
    @Autowired
     private AdministratorDao administratorDao;

    public Administrator getAdministratorByname(String adminnaem) {
        return administratorDao.getAdministratorByname(adminnaem);
    }
}
